package com.example.domain;

import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * @author 袁小弘
 * @describe 培训中心学生管理————学费归还类
 * @date 2019-12-17 16:03
 */
@Entity
@Table(name = "return_tuition")
public class ReturnTuition implements Serializable {

    private static final long serialVersionUID = -2239568963147201063L;

    @Id
    @GeneratedValue
    @Column(name = "return_Id")
    private Integer returnId;//学费归还ID

    @Column(name = "quit_Id")
    private Integer quitId;//退班ID

    @Column(name = "charge_type_Id")
    private Integer chargeTypeId;//费用ID

    @Column(name = "originalClass", length = 32)
    private String originalClass;//原有班级

    @Column(name = "quitStatus", length = 32)
    private String quitStatus;//退班状态

    @Column(name = "returnStatus", length = 32)
    private String returnStatus;//退费状态

    @Column(name = "sumMoney")
    private BigDecimal sumMoney;//金额

    @Column(name = "comment")
    private String comment;//备注说明

    @Column(name = "recordTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp recordTime;//创建记录时间

    @Column(name = "updateTime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Timestamp updateTime;//更新记录时间


    public ReturnTuition() {
        //无参构造
    }


    public Integer getReturnId() {
        return returnId;
    }


    public void setReturnId(Integer returnId) {
        this.returnId = returnId;
    }


    public Integer getChargeTypeId() {
        return chargeTypeId;
    }


    public void setChargeTypeId(Integer chargeTypeId) {
        this.chargeTypeId = chargeTypeId;
    }


    public Integer getQuitId() {
        return quitId;
    }


    public void setQuitId(Integer quitId) {
        this.quitId = quitId;
    }


    public String getOriginalClass() {
        return originalClass;
    }

    public void setOriginalClass(String originalClass) {
        this.originalClass = originalClass;
    }

    public String getQuitStatus() {
        return quitStatus;
    }

    public void setQuitStatus(String quitStatus) {
        this.quitStatus = quitStatus;
    }

    public String getReturnStatus() {
        return returnStatus;
    }

    public void setReturnStatus(String returnStatus) {
        this.returnStatus = returnStatus;
    }

    public BigDecimal getSumMoney() {
        return sumMoney;
    }

    public void setSumMoney(BigDecimal sumMoney) {
        this.sumMoney = sumMoney;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public Timestamp getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(Timestamp recordTime) {
        this.recordTime = recordTime;
    }

    public Timestamp getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Timestamp updateTime) {
        this.updateTime = updateTime;
    }


    @Override
    public String toString() {
        return "ReturnTuition [returnId=" + returnId + ", quitId=" + quitId + ", chargeTypeId=" + chargeTypeId
                + ", originalClass=" + originalClass + ", quitStatus=" + quitStatus + ", returnStatus=" + returnStatus
                + ", sumMoney=" + sumMoney + ", comment=" + comment + ", recordTime=" + recordTime + ", updateTime="
                + updateTime + "]";
    }


}
